
#ifndef _UDPCLIENT_H_
#define _UDPCLIENT_H_

class UdpClient : public QObject
{
	Q_OBJECT
public:
	explicit UdpClient(QObject *parent = Q_NULLPTR);
	~UdpClient();

	public Q_SLOTS:
	void OnStart(void);

	Q_SIGNALS:
	void socket_receive(QByteArray data);

	private Q_SLOTS:
	void readPendingDatagrams(void);

private:
	void bind_port(void);

	QUdpSocket *mUdpSocket;
};

#endif

